local sk_le__weifeng = fk.CreateSkill {

  name = "sk_le__weifeng",

  tags = {},

}
Fk:loadTranslationTable {
  ['sk_le__weifeng'] = '威风',
  [':sk_le__weifeng'] = '其他角色的准备阶段，你可以与该角色拼点：若你赢，你摸两张牌并视为对其使用一张【杀】；若你没赢，你可以令其摸两张牌并视为对你使用一张【杀】。',
  ['$sk_le__weifeng1'] = '胆小鼠辈，可敢应战',
  ['$sk_le__weifeng2'] = '从者可免，拒者难容',
}

sk_le__weifeng:addEffect(fk.EventPhaseStart, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target ~= player and player:hasSkill(sk_le__weifeng.name) and target.phase == Player.Start and
        player:canPindian(target)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local pindian = player:pindian({ target }, sk_le__weifeng.name)
    if player.dead then return end
    if pindian.results[target].winner == player then
      player:drawCards(2, sk_le__weifeng.name)
      room:useVirtualCard("slash", nil, player, { target }, "sk_le__weifeng", true)
    elseif not target.dead then
      target:drawCards(2, sk_le__weifeng.name)
      room:useVirtualCard("slash", nil, target, { player }, "sk_le__weifeng", true)
    end
  end,
})


return sk_le__weifeng
